package com.example.dao;

import com.example.entity.Address;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

/**
 *
 */
public interface AddressRepository extends Neo4jRepository<Address, Long> {
    @Query("MATCH (a:Address) WHERE a.address = $address RETURN a limit 1")
    Address findByAddress(String address);
}
